using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FerrScript.Builder
{
    public class ScriptBlock : BuilderBlock
    {
        #region Fields
        string scriptText;
        #endregion

        #region Properties
        public string ScriptText
        {
            get { return scriptText; }
            set { scriptText = value; }
        }
        #endregion

        #region Constructors
        public ScriptBlock()
            : this("") { }
        public ScriptBlock(string aScriptText)
        {
            scriptText = aScriptText;
        }
        #endregion

        #region Overrides
        public override string ToString()
        {
            return "(body ;script\n" + scriptText + "\n);end script";
        }
        #endregion

        #region Abstract overrides
        public override string BlockName
        {
            get { return "Script"; }
        }
        public override ParenType ParenType
        {
            get { return ParenType.SelfContained; }
        }
        public override BlockType BlockType
        {
            get { return BlockType.Misc; }
        }
        public override string Description
        {
            get { return "Script"; }
        }
        public override string IconName
        {
            get { return "Command.png"; }
        }
        #endregion
    }
}